package com.wiloon.java8x.basic;

/*
 * Created by roy on 7/19/17;
 */
public class DataType {
    public static void main(String[] args) {
        Object foo = 1;
        Object bar = 1.23;

        System.out.println(foo instanceof Integer);
        System.out.println(foo instanceof Double);

        System.out.println(bar instanceof Integer);
        System.out.println(bar instanceof Double);

        byte b=(byte) 200;
        b=(byte) 3;
        b=(byte) 127;
        b=(byte) 128;
        b=(byte) 0x03;
        b=(byte) 0xFF;

        b=(byte) 0x80;
        System.out.println(b);
    }
}
